package com.zgxt.demo.service;


import com.zgxt.demo.entity.Role;
import com.zgxt.demo.entity.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    //登录
    User login(String account, String password, Integer role_id);
    //获取用户列表
    List<Role> RoleList();
    //用户注册
    Integer register(String name,String address, String password);
    //忘记密码
    Integer forget(String address, String password,String confirm_password);
    //查询所有用户
    Map<String, Object> QueryUser(Integer pageIndex, Integer pageSize, String name);
    //删除用户
    Integer deleteUser(String ids);
    //更改用户信息
    Integer updateUser(Integer id,String name,String password);
}
